<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s"  uri="/struts-tags"%>
<HTML>
<HEAD>
	<TITLE> ZTREE DEMO - Simple Data</TITLE>
	<meta http-equiv="content-type" content="text/html; charset=UTF-8">
	<base href="${path}"  target="_blank">
	<link rel="stylesheet" href="${path}css/zTreeStyle/zTreeStyle.css" type="text/css">
	<script type="text/javascript" src="${path}js/jquery-1.4.4.min.js"></script>
	<script type="text/javascript" src="${path}js/jquery.ztree.core-3.5.js"></script>
	<SCRIPT type="text/javascript">
		<!--
		var setting = {
			data: {
				simpleData: {
					enable: true
				}
			}
		};

		var zNodes =[
			{ id:1, pId:0, name:"商品管理", open:true},
			{ id:11, pId:1, name:"商品管理",url:"goods/entryQueryGoods.do",target:"mainFrame"},
			{ id:2, pId:0, name:"用户管理", open:true},
			{ id:21, pId:2, name:"用户管理",url:"user/queryAllUser.do",target:"mainFrame"},
			{ id:3, pId:0, name:"店铺管理", open:true},
			{ id:31, pId:3, name:"店铺管理",url:"shop/queryGoods.do",target:"mainFrame"},
			{ id:4, pId:0, name:"留言管理", open:true},
			{ id:41, pId:4, name:"留言管理",url:"shop/queryGoods.do",target:"mainFrame"},
		];

		$(document).ready(function(){
			$.fn.zTree.init($("#treeDemo"), setting, zNodes);
		});
		//-->
	</SCRIPT>
	<style type="text/css">
	
body {
	background: #d8edfc;
}
	</style>
 </HEAD>

<BODY>
<div > 
	<div  >
		<ul id="treeDemo" class="ztree"></ul>
	</div>
</div>

</BODY>
</HTML>